package com.young.hello.dubbo.service.user.provider.api.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.young.hello.dubbo.service.user.api.UserService;
import org.springframework.beans.factory.annotation.Value;

/**
 * 描述:
 *
 * @author BluceYoung
 * @create 2020-06-19 15:27
 * B站：TeacherYoung凌风
 * www.teacheryoung.com
 */
@Service(version = "${user.service.version}")
public class UserServiceImpl implements UserService {

    @Value("${dubbo.protocol.port}")
    private String port;

    @Override
    public String sayHi() {
        return "hello young-"+port;
    }
}
